#!/user/bin/env node

const Koa = require('koa');       //类
const app = new Koa(),
      logger = require('koa-logger');


app.use(logger());
app.use((ctx,next)=>{     //中间件：在页面返回ctx.body
  ctx.body = 'hello world';
})

app.listen(8080);
